<?php

namespace App\Http\Controllers\Backend;

use App\Models\Admin;

class UserController extends BaseController
{
    // 会员管理
    public function initialize()
    {
        parent::initialize();

        $this->model = 'user';
    }

    // 修改密码
    public function password()
    {
        $manage = $this->checkManage($this->model);
        if($manage === false){
            return $this->error($manage->getError());
        }

        $result = $manage->onPassword();

        return $this->success($result);
    }

}


